FROM apache/skywalking-java-agent:8.5.0-jdk8
ADD target/search-service-0.0.1-SNAPSHOT.jar search-service.jar
ENV JAVA_OPTS="-server -Xms128m -Xmx512m -Xss512k -Dskywalking.agent.service_name=order-service -Dskywalking.collector.backend_service=skywalking:11800 $JAVA_TOOL_OPTIONS"
RUN apk add tzdata
ENV TZ Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8868:8868
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar search-service.jar" ]